<template>
  <el-drawer :show-close="false" v-model="isShow" :size="size">
    <template #header>
      <h4>添加供应商</h4>
    </template>
    <template #default>
      <div>
        <el-radio v-model="radio1" label="Option 1" size="large"
          >Option 1</el-radio
        >
        <el-radio v-model="radio1" label="Option 2" size="large"
          >Option 2</el-radio
        >
      </div>
    </template>
    <template #footer>
      <div style="flex: auto">
        <el-button @click="cancelClick">cancel</el-button>
        <el-button type="primary" @click="confirmClick">confirm</el-button>
      </div>
    </template>
  </el-drawer>
</template>
<script setup>
const props = defineProps({
  value: {
    type: Boolean,
    default: false,
  },
  size: {
    type: String,
    default: "50%",
  },
});
const isShow = props.value;
</script>
